package com.thunisoft.beanutils.service.impl;

import com.thunisoft.beanutils.bean.Father;
import com.thunisoft.beanutils.bean.Son;
import com.thunisoft.beanutils.service.CopyProperties;

import net.sf.cglib.beans.BeanCopier;

/**
 * @title CglibBeanUtils.java
 * @package com.thunisoft.beanutils.service.impl
 * @projectName spring.boot
 * @author yzj 
 * @date 2019年6月12日 下午3:56:15
 */
public class CglibBeanUtils implements CopyProperties{

	BeanCopier bc = BeanCopier.create(Son.class, Father.class, false);
	@Override
	public void copy(Son from, Father dest) {
		bc.copy(from, dest, null);
	}

}
